package com.srv;

import java.io.File;
import java.io.IOException;

/**
 * 相关的配置
 * @author Administrator
 *
 */
public class Config {	
	public final static String aliyun_oss_accessId = "erfz81l3vd9jwgbhjognoe6j";
	public final static String aliyun_oss_accessKey = "dR5Tl1swzb2PEQY12313SdFMNTQ=";
	public final static String aliyun_oss_ossEndpoint = "http://storage.aliyun.com/";
	
	private final static String resource_disk_root="d:/travel/";
	private static boolean resource_disk_root_isExists=false;
	
	public final static int TABLE_NUM=2;
	/**
	 * 获取资源硬盘存储的跟
	 * @return
	 * @throws IOException
	 */
	public static String getResource_disk_root() throws IOException{
		if(resource_disk_root_isExists){
			return resource_disk_root;
		}
		resource_disk_root_isExists=resource_disk_root_isExists();
		return resource_disk_root;
		
	}
	private static boolean resource_disk_root_isExists() throws IOException{
		File tf = new File(resource_disk_root);
		if(!tf.exists()){
			tf.mkdir();
		}	
		return true;
	}

}
